package com.cloudexpress.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cloudexpress.persistence.dao.AdminMapper;
import com.cloudexpress.persistence.model.Admin;


@Service
public class AdminService {

  @Autowired
  private AdminMapper AdminMapper;



  @Transactional
  public void insertAdmin(Admin Admin) {
    AdminMapper.insert(Admin);
  }
  
  public Admin getAdmin(int id) {
	  return AdminMapper.selectByPrimaryKey(id);
  }
  
  public void testAdminService() {
	  System.out.println("testAdminService");
  }



}